import { Random } from "mockjs"

Random.extend({
    phone:function(data){
        let arr=['苹果','神舟','华为','小米'];
        return this.pick(arr);
    },
    status:function(){
        let arr=[1,2];
        return this.pick(arr);
    },
    path:function(){
        let num=Random.integer(1,3);
        let arr=new Array();
        for(let i=num;i>0;i--){
            arr.push(Random.word(3,6));
        }

        return '/'+arr.join('/');
    }
})
